GXCreateSpoolFile
QuickDraw GX sends theGXCreateSpoolFile
message at the start of spooling a document. You can override theGXCreateSpoolFile
message to perform the setup for spool files. Your override of theGXCreateSpoolFile
message must match the following formal declaration:
OSErr MyCreateSpoolFile (FSSpecPtr aFSSpecPtr, long createOptions, gxSpoolFile *aSpoolFile);
aFSSpecPtr
- A pointer to a file specification that indicates where the spool file is created.
createOptions
- Options for creating the spool file, as shown in Table 4-5.
aSpoolFile
- A pointer to a file specification, which on return is a value that references the newly created spool file.
- function result
- An error code. The value
noErr
indicates that the operation was successful.DESCRIPTION
QuickDraw GX sends theGXCreateSpoolFile
message at the start of spooling, when an application calls theGXStartJob
function to create a new spool file. Several options for creating the file may be specified by QuickDraw GX, as shown in Table 4-5.If you override the
GXCreateSpoolFile
message, you can perform any setup you wish. You can override this message to change the location of the spool file by changing the contents of theaFSSpecPtr
parameter. You can also override this message and all subsequent spooling messages if you want to do all your own spooling. The code in your override of this message is executed once per spooled job.SPECIAL CONSIDERATIONS
You rarely send theGXCreateSpoolFile
message yourself.If you are providing your own spooling, you need to totally override the
GXCreateSpoolFile
message and all of the other spooling and despooling messages.If you are not providing your own spooling (which is almost always the case), you must forward the
GXCreateSpoolFile
message because QuickDraw GX's default implementation creates a new spool file that is used by the other spooling messages.RESULT CODES
gxSegmentLoadFailedErr A required code segment could not be found,
or there was not enough memory to load it.gxPrUserAbortErr The user has canceled printing. SEE ALSO
TheGXStartJob
function is described in Inside Macintosh: QuickDraw GX Printing.
Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help